package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaDiagnosTempDto;
import com.ysd.lis.entity.sta.StaDiagnosTempDesc;
import com.ysd.lis.service.sta.StaDiagnosTempDescService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 微生物-细菌报告-结果描述模板
 * </p>
 *
 * @author lm
 * @since 2024-12-06
 */
@RestController
@RequestMapping("/sta/diagnosTempDesc")
public class StaDiagnosTempDescController extends BaseController {

    @Autowired
    StaDiagnosTempDescService babDiagnosTempDescService;

    @ApiOperation("查询")
    @GetMapping("/findDiagnosTempDescList")
    public Result findDiagnosTempDescList(StaDiagnosTempDto param) {
        return babDiagnosTempDescService.findDiagnosTempDescList(param);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteDiagnosTempDesc")
    public Result batchDeleteDiagnosTempDesc(@RequestBody StaDiagnosTempDto dto){
        return  babDiagnosTempDescService.batchDeleteDiagnosTempDesc(dto);
    }

    @ApiOperation("批量修改")
    @PostMapping("/batchUpdateDiagnosTempDesc")
    public Result batchUpdateDiagnosTempDesc(@RequestBody StaDiagnosTempDto dto){
        return  babDiagnosTempDescService.batchUpdateDiagnosTempDesc(dto);
    }


    @ApiOperation("新增")
    @PostMapping("/addDiagnosTempDesc")
    public Result addDiagnosTempDesc(@RequestBody StaDiagnosTempDesc project){
        return  babDiagnosTempDescService.addDiagnosTempDesc(project);
    }

    @ApiOperation("修改")
    @PostMapping("/editDiagnosTempDesc")
    public Result editDiagnosTempDesc(@RequestBody StaDiagnosTempDesc project){
        return babDiagnosTempDescService.editDiagnosTempDesc(project);
    }

}
